<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title>OpenLayers - Errors</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/components/prism-core.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/plugins/autoloader/prism-autoloader.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/plugins/toolbar/prism-toolbar.min.js"></script>
  <script
    src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>
  <link rel="stylesheet" type="text/css"
    href="https://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css"
    crossorigin="anonymous">
  <link rel="stylesheet" type="text/css"
    href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/fontawesome.min.css"
    crossorigin="anonymous">
  <link rel="stylesheet" type="text/css"
    href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css"
    href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/brands.css" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href="/theme/ol.css">
  <link rel="stylesheet" type="text/css" href="/theme/site.css">
  <link rel="icon" type="image/svg+xml" href="/theme/img/logo-light.svg" media="(prefers-color-scheme: light)" />
  <link rel="icon" type="image/svg+xml" href="/theme/img/logo-dark.svg" media="(prefers-color-scheme: dark)" />
</head>

<body>
  <header class="navbar navbar-expand-md navbar-dark mb-3 px-3 py-0 fixed-top" role="navigation">
    <a class="navbar-brand" href="/"><img src="/theme/img/logo-dark.svg" width="70" height="70"
        alt="">&nbsp;OpenLayers</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#olmenu"
      aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>

    <!-- menu items that get hidden below 768px width -->
    <nav class="collapse navbar-collapse" id="olmenu">
      <ul class="nav navbar-nav ms-auto">
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="docdropdown" role="button" data-bs-toggle="dropdown"
            aria-haspopup="true" aria-expanded="false">Docs</a>
          <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="docdropdown">
            <a class="dropdown-item" href="/doc/">Docs</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="/doc/quickstart.html"><i class="fa fa-check fa-fw me-2 fa-lg"></i>快速入门</a>
            <a class="dropdown-item" href="/doc/faq.html"><i class="fa fa-question fa-fw me-2 fa-lg"></i>常见问题</a>
            <a class="dropdown-item" href="/doc/tutorials/"><i class="fa fa-book fa-fw me-2 fa-lg"></i>教程</a>

          </div>
        </li>
        <li class="nav-item"><a class="nav-link" href="/en/latest/examples/">Examples</a></li>
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="apidropdown" role="button" data-bs-toggle="dropdown"
            aria-haspopup="true" aria-expanded="false">
            <i class="fa fa-sitemap me-1"></i>API
          </a>
          <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="apidropdown">
            <a class="dropdown-item" href="/en/latest/apidoc/"><i class="fa fa-sitemap fa-fw me-2 fa-lg"></i>v8.2.0
              (latest)</a </div>
        </li>
      </ul>
    </nav>
  </header>

  <div class="container">
    <h1 id="errors">Errors</h1>
    <h3 id="1">1</h3>
    <p>The view center is not defined.</p>
    <h3 id="2">2</h3>
    <p>The view resolution is not defined.</p>
    <h3 id="3">3</h3>
    <p>The view rotation is not defined.</p>
    <h3 id="4">4</h3>
    <p><code>image</code> and <code>src</code> cannot be provided at the same time.</p>
    <h3 id="5">5</h3>
    <p><code>imgSize</code> must be set when <code>image</code> is provided.</p>
    <h3 id="6">6</h3>
    <p>A defined and non-empty <code>src</code> or <code>image</code> must be provided.</p>
    <h3 id="7">7</h3>
    <p><code>format</code> must be set when <code>url</code> is set.</p>
    <h3 id="8">8</h3>
    <p>Unknown <code>serverType</code> configured.</p>
    <h3 id="9">9</h3>
    <p><code>url</code> must be configured or set using <code>#setUrl()</code>.</p>
    <h3 id="10">10</h3>
    <p>The default <code>geometryFunction</code> can only handle <code>ol/geom/Point</code> geometries.</p>
    <h3 id="11">11</h3>
    <p><code>options.featureTypes</code> must be an Array.</p>
    <h3 id="12">12</h3>
    <p><code>options.geometryName</code> must also be provided when <code>options.bbox</code> is set.</p>
    <h3 id="13">13</h3>
    <p>Invalid corner. Valid corners are <code>top-left</code>, <code>top-right</code>, <code>bottom-right</code> and
      <code>bottom-left</code>.
    </p>
    <h3 id="14">14</h3>
    <p>Invalid color. Valid colors are all <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color">CSS
        colors</a>.</p>
    <h3 id="15">15</h3>
    <p>Tried to get a value for a key that does not exist in the cache.</p>
    <h3 id="16">16</h3>
    <p>Tried to set a value for a key that is used already.</p>
    <h3 id="17">17</h3>
    <p><code>resolutions</code> must be sorted in descending order.</p>
    <h3 id="18">18</h3>
    <p>Either <code>origin</code> or <code>origins</code> must be configured, never both.</p>
    <h3 id="19">19</h3>
    <p>Number of <code>tileSizes</code> and <code>resolutions</code> must be equal.</p>
    <h3 id="20">20</h3>
    <p>Number of <code>origins</code> and <code>resolutions</code> must be equal.</p>
    <h3 id="22">22</h3>
    <p>Either <code>tileSize</code> or <code>tileSizes</code> must be configured, never both.</p>
    <h3 id="24">24</h3>
    <p>Invalid extent or geometry provided as <code>geometry</code>.</p>
    <h3 id="25">25</h3>
    <p>Cannot fit empty extent provided as <code>geometry</code>.</p>
    <h3 id="26">26</h3>
    <p>Features for <code>deletes</code> must have an id set by the feature reader or <code>ol.Feature#setId()</code>.
    </p>
    <h3 id="27">27</h3>
    <p>Features for <code>updates</code> must have an id set by the feature reader or <code>ol.Feature#setId()</code>.
    </p>
    <h3 id="28">28</h3>
    <p><code>renderMode</code> must be <code>&#39;hybrid&#39;</code> or <code>&#39;vector&#39;</code>.</p>
    <h3 id="30">30</h3>
    <p>The passed <code>feature</code> was already added to the source.</p>
    <h3 id="31">31</h3>
    <p>Tried to enqueue an <code>element</code> that was already added to the queue.</p>
    <h3 id="32">32</h3>
    <p>Transformation matrix cannot be inverted.</p>
    <h3 id="33">33</h3>
    <p>Invalid <code>units</code>. <code>&#39;degrees&#39;</code>, <code>&#39;imperial&#39;</code>,
      <code>&#39;nautical&#39;</code>, <code>&#39;metric&#39;</code> or <code>&#39;us&#39;</code> required.
    </p>
    <h3 id="34">34</h3>
    <p>Invalid geometry layout. Must be <code>XY</code>, <code>XYZ</code>, <code>XYM</code> or <code>XYZM</code>.</p>
    <h3 id="36">36</h3>
    <p>Unknown SRS type. Expected <code>&quot;name&quot;</code>.</p>
    <h3 id="37">37</h3>
    <p>Unknown geometry type found. Expected <code>&#39;Point&#39;</code>, <code>&#39;LineString&#39;</code>,
      <code>&#39;Polygon&#39;</code> or <code>&#39;GeometryCollection&#39;</code>.
    </p>
    <h3 id="38">38</h3>
    <p><code>styleMapValue</code> has an unknown type.</p>
    <h3 id="39">39</h3>
    <p>Unknown geometry type found. Expected <code>&#39;GeometryCollection&#39;</code>,
      <code>&#39;MultiPoint&#39;</code>, <code>&#39;MultiLineString&#39;</code> or <code>&#39;MultiPolygon&#39;</code>.
    </p>
    <h3 id="40">40</h3>
    <p>Expected <code>feature</code> to have a geometry.</p>
    <h3 id="41">41</h3>
    <p>Expected an <code>ol.style.Style</code> or an array of <code>ol.style.Style</code>.</p>
    <h3 id="43">43</h3>
    <p>Expected <code>layers</code> to be an array or an <code>ol.Collection</code>.</p>
    <h3 id="47">47</h3>
    <p>Expected <code>controls</code> to be an array or an <code>ol.Collection</code>.</p>
    <h3 id="48">48</h3>
    <p>Expected <code>interactions</code> to be an array or an <code>ol.Collection</code>.</p>
    <h3 id="49">49</h3>
    <p>Expected <code>overlays</code> to be an array or an <code>ol.Collection</code>.</p>
    <h3 id="50">50</h3>
    <p>Cannot determine Rest Service from url.</p>
    <h3 id="51">51</h3>
    <p>Either <code>url</code> or <code>tileJSON</code> options must be provided.</p>
    <h3 id="52">52</h3>
    <p>Unknown <code>serverType</code> configured.</p>
    <h3 id="53">53</h3>
    <p>Unknown <code>tierSizeCalculation</code> configured.</p>
    <h3 id="55">55</h3>
    <p>The <code>{-y}</code> placeholder requires a tile grid with extent.</p>
    <h3 id="56">56</h3>
    <p><code>mapBrowserEvent</code> must originate from a pointer event.</p>
    <h3 id="57">57</h3>
    <p>At least 2 conditions are required.</p>
    <h3 id="58">58</h3>
    <p>Duplicate item added to a unique collection. For example, it may be that you tried to add the same layer to a map
      twice. Check for calls to <code>map.addLayer()</code> or other places where the map&#39;s layer collection is
      modified.</p>
    <h3 id="59">59</h3>
    <p>Invalid command found in the PBF. This indicates that the loaded vector tile may be corrupt.</p>
    <h3 id="60">60</h3>
    <p>Missing or invalid <code>size</code>.</p>
    <h3 id="61">61</h3>
    <p>Cannot determine IIIF Image API version from provided image information JSON.</p>
    <h3 id="62">62</h3>
    <p>A <code>WebGLArrayBuffer</code> must either be of type <code>ELEMENT_ARRAY_BUFFER</code> or
      <code>ARRAY_BUFFER</code>.
    </p>
    <h3 id="64">64</h3>
    <p>Layer opacity must be a number.</p>
    <h3 id="66">66</h3>
    <p><code>forEachFeatureAtCoordinate</code> cannot be used on a WebGL layer if the hit detection logic has not been
      enabled.</p>
    <h3 id="67">67</h3>
    <p>A layer can only be added to the map once. Use either <code>layer.setMap()</code> or <code>map.addLayer()</code>,
      not both.</p>
    <h3 id="68">68</h3>
    <p>Data from this source can only be rendered if it has a projection compatible with the view projection.</p>

  </div>

  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>